package com.bc.trade.config;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.bc.trade.model.Account;
import com.jfinal.kit.PropKit;

public class R {
	
	public static final boolean IS_REDIS = PropKit.use("config.properties").getBoolean("isRedis");
	public static final String RK_CHANNEL = "BC_CHANNEL";
	public static final String RK_FEE_MODEL = "BC_FEE_MODEL";
	public static final String RK_RISK = "BC_RISK";
	public static final String RK_TS = "BC_TS";
	public static final String RK_MERCH = "BC_MERCH";
	public static final String RK_ORG = "BC_ORG";
	
	/** 基础数据源 */
	public static final String DATASOURCE_BD = "BD";
	/** 交易数据源 */
	public static final String DATASOURCE_TRADE = "TRADE";
	
	public static final String ADMIN_SYS_SAFEKEY = SystemConfig.config.get("admin_sysetem_safekey");
	
	public static final String MSG_SIGN_ERROR = "签名校验失败";
	public static final String MSG_EXCEPTION = "系统异常,结果未知,需发起查询确认";
	public static final String MSG_NO_SUBMERCH = "该商户号没有分配子商户号,无法进行交易";
	public static final String MSG_NO_TRADE_STRA = "无交易策略";
	public static final String MSG_NO_MERCH = "商户号不存在";
	public static final String MSG_NO_D0 = "商户未开通D0";
	public static final String MSG_MERCH_DISABLE = "该商户号被禁用,无法进行交易";
	public static final String MSG_ORDER_REPEAT = "订单号重复";
	public static final String MSG_MERCH_ORDER_NOTFOUND = "无此商户订单号";
	public static final String MSG_ERROR_MERCH_COINTYPE = "商户信息的支付币种配置错误";
	
	// 银行英文简称（K:英语简称，V:清算行号）
		public static Map<String, String> bankEnShortMap = new HashMap<String, String>();
		static {
			bankEnShortMap.put("ICBC", "102100099996,中国工商银行");
			bankEnShortMap.put("ABC", "103100000026,中国农业银行");
			bankEnShortMap.put("BOC", "104100000004,中国银行");
			bankEnShortMap.put("CCB", "105100000017,中国建设银行");
			bankEnShortMap.put("BOCOM", "301290000007,交通银行");
			bankEnShortMap.put("CITIC", "302100011000,中信银行");
			bankEnShortMap.put("CEB", "303100000006,中国光大银行");
			bankEnShortMap.put("HXB", "304100040000,华夏银行");
			bankEnShortMap.put("CMBC", "305100000013,中国民生银行");
			bankEnShortMap.put("CGB", "306581000003,广发银行");
			bankEnShortMap.put("PAB", "307584007998,平安银行");
			bankEnShortMap.put("CMB", "308584000013,招商银行");
			bankEnShortMap.put("CIB", "309391000011,兴业银行");
			bankEnShortMap.put("SPDB", "310290000013,浦发银行");
			bankEnShortMap.put("EBCL", "315456000105,恒丰银行");
			bankEnShortMap.put("PSBC", "403100000004,中国邮政储蓄银行");
			bankEnShortMap.put("GHB", "313586000006,广东华兴银行股份有限公司");
			bankEnShortMap.put("DGB", "313602088017,东莞银行股份有限公司");
		}
		
//	public static List<Account> hicardMerchantList;
//	static {
//		hicardMerchantList = Account.dao.selectHicardAccountNo();
//	}
		

}
